home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
screenfool
/
install-screenfool
< prev
next >
Wrap
Text File
|
1994-10-23
|
5KB
|
201 lines
;$VER: Install-ScreenFool 3.0 (30.9.94)
(set whichway
(askchoice
(prompt "Where do you want to install ScreenFool?")
(help
(cat "Installing to SYS:WBStartup or SYS:Tools/Commodities will copy "
"libraries and language catalogs to system directories.\n\n"
"Custom installation will keep all files in one directory, for "
"easier uninstallation. Note that ReqTools will be copied to LIBS: "
"if necessary in all cases."
)
)
(choices "SYS:WBStartup" "SYS:Tools/Commodities" "Custom...")
(default 0)
)
)
(if (= whichway 2)
(
(set destdir
(askdir
(prompt "Please choose the drawer in which you want to create the ScreenFool drawer.")
(help @askdir-help)
(default @default-dest)
)
)
(copyfiles
(prompt ("Copying ScreenFool to %s..." destdir))
(help @copyfiles-help)
(dest (tackon destdir "ScreenFool"))
(source (pathonly @icon))
(choices "ScreenFool" "ScreenFool-AP" "ScreenFool.guide" "Readme"
"PSPub.sf" "PWPub.sf" "SF-Startup.sf" "SFTest.sf"
"screenfool.library" "SFNewScrReq.IFF" "SFWindow.IFF" "Catalogs")
(confirm)
(infos)
)
(complete 60)
(foreach (tackon destdir "ScreenFool") "#?"
(tooltype
(dest @each-name)
(noposition)
)
)
(complete 80)
(copylib
(prompt "Copying reqtools.library to Libs:...")
(help @copylib-help)
(source "reqtools.library")
(dest "Libs:")
(confirm)
)
(complete 100)
)
; End of "Custom" procedure; begin of "standard" procedure
(
(if (= 0 whichway)
(
(set destdir "SYS:WBStartup")
(set popup "No")
)
(
(set destdir "SYS:Tools/Commodities")
(set popup "Yes")
)
)
(copylib
(prompt "Copying screenfool.library to Libs:...")
(help @copylib-help)
(source "screenfool.library")
(dest "Libs:")
(confirm)
)
(complete 20)
(copylib
(prompt "Copying reqtools.library to Libs:...")
(help @copylib-help)
(source "reqtools.library")
(dest "Libs:")
(confirm)
)
(complete 40)
(set whichvers (>= (database "cpu") 68020))
(set whichvers
(askchoice
(prompt "Please choose a version of ScreenFool to install.")
(help
(cat "ScreenFool is intended for users of 68000-based computers. "
"ScreenFool-AP is for users of 68020 and higher systems.")
)
(choices "ScreenFool (68000 version)" "ScreenFool-AP (68020+ version)")
(default whichvers)
)
)
(if whichvers
(
(copyfiles
(prompt "Copying Advanced Processor version...")
(help @copyfiles-help)
(source "ScreenFool-AP")
(dest destdir)
(infos)
)
(tooltype
(prompt "Modifying Advanced Processor tool types...")
(dest (tackon destdir "ScreenFool-AP"))
(settooltype "CX_POPUP" popup)
(settooltype "DONOTWAIT" "")
(setstack 8192)
(noposition)
)
)
;Else
(
(copyfiles
(prompt "Copying Regular version...")
(help @copyfiles-help)
(source "ScreenFool")
(dest destdir)
(infos)
)
(tooltype
(prompt "Modifying Regular tool types...")
(dest (tackon destdir "ScreenFool"))
(settooltype "CX_POPUP" popup)
(settooltype "DONOTWAIT" "")
(setstack 8192)
(noposition)
)
)
)
(complete 60)
(copyfiles
(prompt "Copying ScreenFool.guide to LOCALE:Help/english...")
(help @copyfiles-help)
(source "ScreenFool.guide")
(dest "Locale:Help/english")
(infos)
)
(complete 70)
(copyfiles
(prompt "Copying additional help files to LOCALE:Help/english...")
(help @copyfiles-help)
(pattern "#?.iff")
(source (pathonly @icon))
(dest "LOCALE:Help/english")
)
(complete 80)
(copyfiles
(prompt "Copying demonstration macros to Rexx:")
(help @copyfiles-help)
(pattern "#?.sf")
(source (pathonly @icon))
(dest "Rexx:")
(confirm)
)
(complete 90)
(set vernum (getversion "exec.library" (resident)))
(set ver (/ vernum 65536))
(if (>= ver 38)
(copyfiles
(prompt "Copying ScreenFool translations to LOCALE:Catalogs")
(help @copyfiles-help)
(source "Catalogs")
(dest "Locale:Catalogs")
(confirm)
(all)
)
)
(complete 100)
)
(set @default-dest destdir)
)